package com.dianneng.show.model;

import java.io.Serializable;

public class SNInfo extends BaseResult implements Serializable {

    private String sn;

    private float dianneng;
    private String diannengS;

    private float dianyaA;
    private float dianyaB;
    private float dianyaC;
    private String dianyaABC;

    private float dianliuA;
    private float dianliuB;
    private float dianliuC;
    private String dianliuABC;

    private float shunshiyou;
    private String shunshiyouS;

    private float shunshiyouA;
    private float shunshiyouB;
    private float shunshiyouC;
    private String shunshiyouABC;

    private float shunshiwu;
    private String shunshiwuS;

    private float shunshiwuA;
    private float shunshiwuB;
    private float shunshiwuC;
    private String shunshiwuABC;

    private float zongyinshu;
    private String zongyinshuS;

    private float zongyinshuA;
    private float zongyinshuB;
    private float zongyinshuC;
    private String zongyinshuABC;

    private float dianwang;
    private String dianwangS;

    private String time;

    private boolean isTitle;

    public String getDiannengS() {
        return diannengS;
    }

    public void setDiannengS(String diannengS) {
        this.diannengS = diannengS;
    }

    public String getShunshiyouS() {
        return shunshiyouS;
    }

    public void setShunshiyouS(String shunshiyouS) {
        this.shunshiyouS = shunshiyouS;
    }

    public String getShunshiwuS() {
        return shunshiwuS;
    }

    public void setShunshiwuS(String shunshiwuS) {
        this.shunshiwuS = shunshiwuS;
    }

    public String getZongyinshuS() {
        return zongyinshuS;
    }

    public void setZongyinshuS(String zongyinshuS) {
        this.zongyinshuS = zongyinshuS;
    }

    public String getDianwangS() {
        return dianwangS;
    }

    public void setDianwangS(String dianwangS) {
        this.dianwangS = dianwangS;
    }

    public boolean isTitle() {
        return isTitle;
    }

    public void setTitle(boolean title) {
        isTitle = title;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public float getDianneng() {
        return dianneng;
    }

    public void setDianneng(float dianneng) {
        this.dianneng = dianneng;
    }

    public float getDianyaA() {
        return dianyaA;
    }

    public void setDianyaA(float dianyaA) {
        this.dianyaA = dianyaA;
    }

    public float getDianyaB() {
        return dianyaB;
    }

    public void setDianyaB(float dianyaB) {
        this.dianyaB = dianyaB;
    }

    public float getDianyaC() {
        return dianyaC;
    }

    public void setDianyaC(float dianyaC) {
        this.dianyaC = dianyaC;
    }

    public String getDianyaABC() {
        return dianyaABC;
    }

    public void setDianyaABC(String dianyaABC) {
        this.dianyaABC = dianyaABC;
    }

    public float getDianliuA() {
        return dianliuA;
    }

    public void setDianliuA(float dianliuA) {
        this.dianliuA = dianliuA;
    }

    public float getDianliuB() {
        return dianliuB;
    }

    public void setDianliuB(float dianliuB) {
        this.dianliuB = dianliuB;
    }

    public float getDianliuC() {
        return dianliuC;
    }

    public void setDianliuC(float dianliuC) {
        this.dianliuC = dianliuC;
    }

    public String getDianliuABC() {
        return dianliuABC;
    }

    public void setDianliuABC(String dianliuABC) {
        this.dianliuABC = dianliuABC;
    }

    public float getShunshiyou() {
        return shunshiyou;
    }

    public void setShunshiyou(float shunshiyou) {
        this.shunshiyou = shunshiyou;
    }

    public float getShunshiyouA() {
        return shunshiyouA;
    }

    public void setShunshiyouA(float shunshiyouA) {
        this.shunshiyouA = shunshiyouA;
    }

    public float getShunshiyouB() {
        return shunshiyouB;
    }

    public void setShunshiyouB(float shunshiyouB) {
        this.shunshiyouB = shunshiyouB;
    }

    public float getShunshiyouC() {
        return shunshiyouC;
    }

    public void setShunshiyouC(float shunshiyouC) {
        this.shunshiyouC = shunshiyouC;
    }

    public String getShunshiyouABC() {
        return shunshiyouABC;
    }

    public void setShunshiyouABC(String shunshiyouABC) {
        this.shunshiyouABC = shunshiyouABC;
    }

    public float getShunshiwu() {
        return shunshiwu;
    }

    public void setShunshiwu(float shunshiwu) {
        this.shunshiwu = shunshiwu;
    }

    public float getShunshiwuA() {
        return shunshiwuA;
    }

    public void setShunshiwuA(float shunshiwuA) {
        this.shunshiwuA = shunshiwuA;
    }

    public float getShunshiwuB() {
        return shunshiwuB;
    }

    public void setShunshiwuB(float shunshiwuB) {
        this.shunshiwuB = shunshiwuB;
    }

    public float getShunshiwuC() {
        return shunshiwuC;
    }

    public void setShunshiwuC(float shunshiwuC) {
        this.shunshiwuC = shunshiwuC;
    }

    public String getShunshiwuABC() {
        return shunshiwuABC;
    }

    public void setShunshiwuABC(String shunshiwuABC) {
        this.shunshiwuABC = shunshiwuABC;
    }

    public float getZongyinshu() {
        return zongyinshu;
    }

    public void setZongyinshu(float zongyinshu) {
        this.zongyinshu = zongyinshu;
    }

    public float getZongyinshuA() {
        return zongyinshuA;
    }

    public void setZongyinshuA(float zongyinshuA) {
        this.zongyinshuA = zongyinshuA;
    }

    public float getZongyinshuB() {
        return zongyinshuB;
    }

    public void setZongyinshuB(float zongyinshuB) {
        this.zongyinshuB = zongyinshuB;
    }

    public float getZongyinshuC() {
        return zongyinshuC;
    }

    public void setZongyinshuC(float zongyinshuC) {
        this.zongyinshuC = zongyinshuC;
    }

    public String getZongyinshuABC() {
        return zongyinshuABC;
    }

    public void setZongyinshuABC(String zongyinshuABC) {
        this.zongyinshuABC = zongyinshuABC;
    }

    public float getDianwang() {
        return dianwang;
    }

    public void setDianwang(float dianwang) {
        this.dianwang = dianwang;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    public static SNInfo setTitle(){
        SNInfo snInfo=new SNInfo();

        snInfo.setTitle(true);
        snInfo.setSn("sn");
        snInfo.setDiannengS("有功总电能\n(kW·h)");
        snInfo.setDianyaABC("电压\n(A相/B相/C相)");
        snInfo.setDianliuABC("电流\n(A相/B相/C相)");
        snInfo.setShunshiyouS("瞬时总有功\n功率(kW)");
        snInfo.setShunshiyouABC("瞬时总有功功率\nA相/B相/C相(kW)");
        snInfo.setShunshiwuS("瞬时总无功\n功率(kvar)");
        snInfo.setShunshiwuABC("瞬时总无功功率\nA相/B相/C相(kvar)");
        snInfo.setZongyinshuS("总功率\n因数");
        snInfo.setZongyinshuABC("总功率因数\nA相/B相/C相");
        snInfo.setDianwangS("电网频率\n(Hz)");
        snInfo.setTime("记录时间");
        return snInfo;
    }


    public static SNInfo getRadom(){
        SNInfo snInfo=new SNInfo();

        snInfo.setTitle(false);
        snInfo.setSn("201908101542");
        snInfo.setDianneng((float) Math.random() * 10);
        snInfo.setDiannengS(snInfo.getDianneng()+"");
        snInfo.setDianyaABC("224.9/224.6/223.5");
        snInfo.setDianliuABC("0.006/0.005/0.005");
        snInfo.setShunshiyouS("0.006");
        snInfo.setShunshiyouABC("0.006/0.005/0.005");
        snInfo.setShunshiwuS("0.006");
        snInfo.setShunshiwuABC("0.006/0.005/0.005");
        snInfo.setZongyinshuS("0.895");
        snInfo.setZongyinshuABC("0.006/0.005/0.005");
        snInfo.setDianwangS("60.23");
        snInfo.setTime("15:46:16");
        return snInfo;
    }
}
